package com.example.base.http;

import java.util.List;


public class ResponseListData<T> extends ResponseData<ResponseListData.ListBean<T>> {

    public static class ListBean<T> {

        /** 页码 */
        private int current;
        /** 页数 */
        private int total;
        /** 数据 */
        private List<T> records;

        /**
         * 判断是否是最后一页
         */
        public boolean hasNext() {
            return current < total;
        }

        public int getTotal() {
            return total;
        }

        public int getPageNum() {
            return current;
        }

        public List<T> getItems() {
            return records;
        }
    }
}